package acom.test.swing.aa;

import javax.swing.JFrame;
import javax.swing.UIManager;


public class MyFrame {
	static final int WIDTH=450;
    static final int HEIGHT=550;
	public static void main(String[] args) {
		
		JFrame frame=new JFrame("添加内容面板测试程序");
		frame.setSize(WIDTH,HEIGHT);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        try {
			// 将LookAndFeel设置成Windows样式
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (Exception ex) {
			ex.printStackTrace();
		}
        SystemUtil.showInCenter(frame);
        
        MyPanel mypanel = new MyPanel();        
        
        frame.setContentPane(mypanel);
        frame.setVisible(true);
	}
}
